﻿namespace BPM.Web.Shared.Constants;

public class ClaimConst
{
    /// <summary>
    /// AccessToken
    /// </summary>
    public const string CLAINM_ACCESSTOKEN = "AccessToken";

    /// <summary>
    /// RefreshToken
    /// </summary>
    public const string CLAINM_REFRESHTOKEN = "RefreshToken";

    /// <summary>
    /// 用户Id
    /// </summary>
    public const string CLAINM_USERID = "UserId";

    /// <summary>
    /// 账号
    /// </summary>
    public const string CLAINM_ACCOUNT = "Account";

    /// <summary>
    /// 名称
    /// </summary>
    public const string CLAINM_NAME = "Name";

    /// <summary>
    /// 是否超级管理
    /// </summary>
    public const string CLAINM_SUPERADMIN = "SuperAdmin";

    /// <summary>
    /// 租户Id
    /// </summary>
    public const string TENANT_ID = "TenantId";

    /// <summary>
    /// 用户组织机构Id
    /// </summary>
    public const string CLAINM_ORGID = "OrgId";

    /// <summary>
    /// 用户组织机构名称
    /// </summary>
    public const string CLAINM_ORGNAME = "OrgName";

    /// <summary>
    /// 用户角色编码
    /// </summary>
    public const string CLAINM_ROLE = "http://schemas.microsoft.com/ws/2008/06/identity/claims/role";

    /// <summary>
    /// 用户授权应用
    /// </summary>
    public const string CLAINM_APP = "App";

    /// <summary>
    /// 用户授权菜单
    /// </summary>
    public const string CLAINM_MENU = "Menu";

    /// <summary>
    /// 用户授权操作
    /// </summary>
    public const string CLAINM_PERMISSION = "Permission";
}

